package day1.homeWork;

import java.io.File;
import java.util.Scanner;

public class FileTest1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入文件路径:");
        String path = sc.next();    //nextLine() 也可以 地址可能有空格
        File f = new File(path);
        /*String[] names = f.list(((dir, name) -> name.endsWith(".java")));
        for (String name : names) {
            System.out.println(name);
        }*/

    }
}
